package com.lw.smartdevice.events;

import com.lw.smartdevice.enums.LoginResultEnum;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/20 15:44
 */
public class MyLoginEvent {




    private LoginResultEnum loginResultEnum;
    private String userName;//当前登录的用户名

    public MyLoginEvent(LoginResultEnum loginResultEnum, String userName) {
        this.loginResultEnum = loginResultEnum;
        this.userName = userName;
    }

    public LoginResultEnum getLoginResultEnum() {
        return loginResultEnum;
    }

    public void setLoginResultEnum(LoginResultEnum loginResultEnum) {
        this.loginResultEnum = loginResultEnum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "MyLoginEvent{" +
                "loginResultEnum=" + loginResultEnum +
                ", userName='" + userName + '\'' +
                '}';
    }
}
